package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;

import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.entity.LoadTaskEntity;

import java.util.List;

/**
 * 装车扫描：选择下一站
 *
 * @author 000432
 * @date 2018/6/1 0001
 */

public class SelectNextDeptAdapter extends CommonRecycleAdapter<LoadTaskEntity> {

    private Context mContext;
    private CommonViewHolder.onItemCommonClickListener mCommonClickListener;

    public SelectNextDeptAdapter(Context context, List<LoadTaskEntity> dataList, CommonViewHolder.onItemCommonClickListener commonClickListener) {
        super(context, dataList, R.layout.adapter_select_next_dept_item2);
        this.mContext = context;
        this.mCommonClickListener = commonClickListener;
    }

    @Override
    public void bindData(CommonViewHolder holder, LoadTaskEntity data, int position) {
        holder.setCommonClickListener(mCommonClickListener);
        holder.setText(R.id.tv_next_dept, data.getNextStation());

    }
}
